<template>
  <view class="cashOutRecord" v-if="list.length != 0">
    <block v-for="(item, index) in list" :key="index">
      <view class="item">
        <view class="item-record">
          <p class="left">状态</p>
          <p 
            :class="['right', item.changeStatus == -1 ? 'color-red' : (item.changeStatus == 0 && 'applying')]">
            {{accountRecordStatusMapping[item.changeStatus]}}
          </p>
        </view>
        <view class="item-record">
          <p class="left">金额</p>
          <p class="right theme-color">{{ item.changeFront }}</p>
        </view>
        <view class="item-record">
          <p class="left">类型</p>
          <p class="right">{{accountRecordTypeMapping[item.recordType]}}</p>
        </view>
        <view class="item-record">
          <p class="left">时间</p>
          <p class="right">{{item.createTime}}</p>
        </view>
      </view>
    </block>
  </view>
  <custom-emptyMsg />
</template>

<script src="./indexMod.js">
</script>
<style src="./indexStyle.scss">
</style>